<html>
	<head>
		<title>Res Test</title>
		<script type="text/javascript">
			var popwindow;
			function PopRes(title,width,height)
			{
				var url = '';
				if (document.res.resurl.value) { url=document.res.resurl.value; }
				var opts = 'width=' + width + ',height=' + height + ',resizable=no,scrollbars=yes,toolbar=yes,menubar=yes,location=yes,status=yes';
				popwindow = window.open(url,title,opts);
				if (window.focus) { popwindow.focus(); }
			}
		</script>
	</head>
	<body>
	
		<form name="res" onSubmit="javascript:PopRes('restest800x600',800,600)">
			<lable>Enter a url to open (or just paste it into popup):</label><br />
			<input name="resurl"    type="text"   tabindex="1" width="600" /><br />
			<input name="800x600"   type="button" tabindex="2" onClick="javascript:PopRes('restest800x600',800,600)"     value="[ 800 x 600 ]"   />
			<input name="1024x768"  type="button" tabindex="2" onClick="javascript:PopRes('restest1024x768',1024,768)"   value="[ 1024 x 768 ]"   />
			<input name="1280x1024" type="button" tabindex="3" onClick="javascript:PopRes('restest1280x1024',1280,1024)" value="[ 1280 x 1024 ]" />
		</form>

	</body>
</html>